package com.example.mapper.institutioncare.safetyinformation;

import com.example.bean.institutioncare.safetyinformation.SafetyManagement;
import com.example.bean.institutioncare.safetyinformation.SafetyManagementVo;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface SafetyMapper{

    List<SafetyManagement> selectPageInfo(SafetyManagementVo vo);

    Integer addSafetyMana(SafetyManagement safetyMan);

    @Update("update safety_management set basic_id=#{basicid},create_date=#{createdate},per_amount=#{peramount},per_type=#{pertype},content=#{content} where noid=#{noid}")
    Integer updaSafetyMana(SafetyManagement safetyMan);

    @Update("update safety_management set basic_id=#{basicid},create_date=#{createdate},rummager=#{rummager},inspection_result=#{inspectionresult} where noid=#{noid}")
    Integer updaSafetyManana(SafetyManagement safetyMan);

    @Update("update safety_management set basic_id=#{basicid},create_date=#{createdate},fire_watch=#{firewatch} where noid=#{noid}")
    Integer updaSafetyManaaa(SafetyManagement safetyMan);

    @Update("update safety_management set basic_id=#{basicid},create_date=#{createdate},personnel=#{personnel},review_mode=#{reviewmode} where noid=#{noid}")
    Integer updaSafetywei(SafetyManagement safetyMan);

    @Update("update safety_management set basic_id=#{basicid},create_date=#{createdate},num_participants=#{numparticipants},photograph=#{photograph} where noid=#{noid}")
    Integer updaSafetyNanana(SafetyManagement safetyMan);

    @Update("update safety_management set is_delete='0' where noid=#{noid}")
    Integer delete(String noid);

}